﻿using System.IO;
using System.Threading.Tasks;

namespace Fetches.Fetch.Utils.FileHosting
{
    /// <summary>
    ///     二进制数据实际存储
    /// </summary>
    public interface IHostFileProvider
    {
        /// <param name="config"></param>
        void Initialize(string config);

        Task WriteAsync(string hash, byte[] data);

        long ItemLength(string hash);

        Stream Read(string hash);
    }
}